import request from '@/utils/request/index.js'

export default {
    // 运费模板列表
    freightList(data) {
        return request({
            url: '/store/mini/freightTemplate/getFreightTemplateList',
            method: 'GET',
            data
        })
    },
    // 省市列表
    areaList() {
        return request({
            url: "/store/mini/area/LocationList",
            method: 'GET',
        })
    },
    // 新增运费模板
    create(data) {
        return request({
            url: '/store/mini/freightTemplate/addFreightTemplate',
            method: 'POST',
            data
        })
    },
    // 运费模板详情
    getFreight(data) {
        return request({
            url: '/store/mini/freightTemplate/getFreightTemplateDetailsList',
            method: 'GET',
            data
        })
    },
    // 运费模板删除
    del(data) {
        return request({
            url: '/store/mini/freightTemplate/deleteFreightTemplate',
            method: 'GET',
            data
        })
    },
    // 修改运费模板
    update(data) {
        return request({
            url: '/store/mini/freightTemplate/updateFreightTemplate',
            method: 'POST',
            data
        })
    }
}